/*
 * Shape.java  0.4.0 / Oct 24, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
package com.cute4j.swing.graphics;

/**
 * Shape Interface.
 *
 * @author Slobodan Vrkacevic
 * @version 0.4.0
 */
public interface Shape {

  /**
   * Returns a rectangle that completely encloses the shape.
   *
   * @return a rectangle that completely encloses the shape
   */
  public Rectangle getBounds();

  /**
   * Returns path iterator that traverses the geometry of the Shape.
   *
   * @return path iterator that traverses the geometry of the Shape
   */
  public PathIterator getPathIterator();

  /**
   * Returns <tt>true</tt> if the specified coordinates lie in the shape.
   *
   * @param x the x coordinate
   * @param y the y coordinate
   *
   * @return <tt>true</tt> if the specified coordinates lie in the shape
   */
  public boolean contains(int x, int y);

}
